package com.wealth.scsj.p_app.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wealth.scsj.p_app.R;
import com.wealth.scsj.p_app.bean.BalanceBean;

import java.util.List;

/**
 * 余额
 */

public class WithDrawalAdapter extends BaseQuickAdapter<BalanceBean,BaseViewHolder> {

    public WithDrawalAdapter(List data) {
        super(R.layout.item_balance_detail, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BalanceBean item) {
//        helper.setText(R.id.month_tv,item.getDate());
//        String type = "";
//        switch (item.getTradeType()){
//            case 1:
//                type = "消费";
//                break;
//            case 2:
//                type = "结算";
//                break;
//            case 3:
//                type = "退款";
//                break;
//            case 4:
//                type = "充值";
//                break;
//            case 5:
//                type = "提现";
//                break;
//            case 6:
//                type = "分销";
//                break;
//        }
//        helper.setText(R.id.title_tv,item.getMoney()+"");
//        helper.setText(R.id.time_tv,item.getDate());
////        helper.setText(R.id.name_tv,item.getMoney()+"");
//        helper.setText(R.id.money_tv,item.getType());
    }
}
